package ooday02;

public class Dog extends Animal implements Swim{
    Dog(String name,int age,String color){
        super(name,age,color);

    }
    void eat(){
        System.out.println(name+"正在吃骨头...");
    }
    void home(){
        System.out.println("一只"+age+"岁"+color+name+"狗在看家");
    }
    public void swim(){
        System.out.println("一只"+age+"岁"+color+name+"狗正在游泳");
    }
}
